using UnityEngine;

namespace FPLibrary
{
    public static class MathfFix64
    {
        public static int FloorToInt(Fix64 value)
        {
            return Mathf.FloorToInt(value.AsFloat());
        }

        public static int CeilToInt(Fix64 value)
        {
            return Mathf.CeilToInt(value.AsFloat());
        }

        public static bool Contains(this FPBB fpbb, FPVector pos)
        {
            //简单处理
            return fpbb.ToBounds().Contains(pos.ToVector());
        }
    }
}